package com.yhq.spring.web.controller;

import com.yhq.spring.web.annotation.LoginLogger;
import com.yhq.spring.web.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author hqyin
 * @date 2023/1/31 6:19 下午
 */
@RestController
public class LoginController {
    @Autowired
    private LoginService loginService;
    @Autowired
    private ApplicationContext applicationContext;

    @PostMapping("/login")
    @LoginLogger
    public String login() {
        return "登陆成功";
    }
}
